﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhouYu.DreamTour.BLL.IService;
using ZhouYu.DreamTour.DAL.IRepository;
using ZhouYu.DreamTour.Model;
using ZhouYu.DreamTour.ViewModel;

namespace ZhouYu.DreamTour.BLL.Service
{
    public class RouteService:IRouteService
    {
        private IRouteRepository _routeRepository;
        public RouteService(IRouteRepository routeRepository)
        {
            _routeRepository = routeRepository;
        }


        #region 根据条件获取具体酒店信息
        /// <summary>
        /// 根据条件获取具体酒店信息
        /// </summary>
        /// <returns></returns>
        public ResponseResult GetHotelByID(int HotelId)
        {
            //创建响应结果类对象
            ResponseResult responseResult = new ResponseResult();
            //调用根据条件获取具体酒店信息
            responseResult.data=_routeRepository.GetHotelByID(HotelId);
            return responseResult;
        }
        #endregion
    }
}
